//
//  IDOLaunchAd.h
//  IDOLaunchAd
//
//  Created by 卓勇  on 2017/6/5.
//  Copyright © 2017年 zhuoyong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "IDOLaunchAdButton.h"
#import "UIImage+IDOLaunchAd.h"


@class IDOLaunchAd;
typedef void(^IDOLaunchAdFinish)(IDOLaunchAd *launchAd);
typedef void(^IDOLaunchAdClick)(IDOLaunchAd *launchAd, NSString *adURLString);

@interface IDOLaunchAd : NSObject

/**
 *  广告显示时间(默认5秒)
 */
@property (nonatomic, assign) CGFloat duration;

/**
 *  广告图片的frame(默认全屏)
 */
@property (nonatomic, assign) CGRect adImageViewFrame;

/**
 *  跳过按钮类型(默认Default)
 */
@property (nonatomic, assign) IDOLaunchAdButtonType launchAdButtonType;

/**
 *  广告图片的名称(网络地址/本地图片带后缀全称)
 */
@property (nonatomic, copy) NSString *adImageNameOrURLString;

/**
 *  广告点击之后的跳转链接
 */
@property (nonatomic, copy) NSString *openURLString;

/**
 *  跳过按钮
 */
@property (nonatomic, strong, readonly) IDOLaunchAdButton *skipButton;

/**
 *  广告图
 */
@property (nonatomic, strong, readonly) UIImageView *adImageView;

/**
 *  广告显示完成
 */
@property (nonatomic, copy) IDOLaunchAdFinish launchAdFinish;

/**
 *  广告点击
 */
@property (nonatomic, copy) IDOLaunchAdClick launchAdClick;


/**
 *  显示广告图
 */
- (void)showLaunchAd;

@end
